<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="resource/js/jquery-3.2.1.js"></script>
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
	function ck(id){
		location.href="detail?id="+id;
	}
	function ts(){
		location.href="tiao";
	}
	function Page(pageNum){
		$("#pageNum").val(pageNum);
		$("form").submit();
		
	}
</script>
${name.name }管理您好，以下为学校的入住情况
<form action="list" method="post">
	楼号或者宿舍号<input type="text" name="hao">
	学生姓名<input type="text" name="name">
	<input type="submit" value="搜索">
	<input type="button" value="调室" onclick="ts()">
	<input type="hidden" name="pageNum" id="pageNum">
</form>
<table>
	<tr>
		<th>编号</th>
		<th>楼号</th>
		<th>宿舍号</th>
		<th>入住学生</th>
		<th>操作</th>
	</tr>
	<c:forEach items="${info.list }" var="list">
		<tr>
			<td>${list.id }</td>
			<td>${list.floorNo }</td>
			<td>${list.dromNo }</td>
			<td>${list.count }</td>
			<td><input type="button" value="查看详情" onclick="ck(${list.id })"></td>
		</tr>
	</c:forEach>
	<tr>
		<td colspan="11">
			<input type="button" value="首页" onclick="Page(1)">
			<input type="button" value="上一页" onclick="Page(${info.prePage})">
			<input type="button" value="下一页" onclick="Page(${info.nextPage})">
			<input type="button" value="尾页" onclick="Page(${info.total})">
		</td>
	</tr>
</table>
</body>
</html>